package client.net.handler;

import client.Client;
import java.nio.ByteBuffer;

/**
 * Interface for client packet processing classes.
 *
 * @author Vincent Tsuei
 * @version 2012-11-17
 */
public interface ClientPacketHandler {
    /**
     * Processes the packet.
     * 
     * Return 0 if successful.
     * Return less than 0 for error state.
     * Encode error states as a static field.
     */
    public int processPacket(Client client, ByteBuffer packet);
}
